import request from '@/utils/request'

// 查询流程配置列表
export function listProcessNode(query) {
  return request({
    url: '/processNode/processNode/list',
    method: 'post',
    data: query
  })
}

// 查询流程配置数量
export function countProcessNode(query) {
  return request({
    url: '/processNode/processNode/count',
    method: 'post',
    data: query
  })
}

// 查询流程配置详细
export function getProcessNode(id) {
  return request({
    url: '/processNode/processNode/' + id,
    method: 'get'
  })
}

// 新增流程配置
export function addProcessNode(data) {
  return request({
    url: '/processNode/processNode',
    method: 'post',
    data: data
  })
}

// 修改流程配置
export function updateProcessNode(data) {
  return request({
    url: '/processNode/processNode',
    method: 'put',
    data: data
  })
}

// 删除流程配置
export function delProcessNode(id) {
  return request({
    url: '/processNode/processNode/' + id,
    method: 'delete'
  })
}

// 导出流程配置
export function exportProcessNode(query) {
  return request({
    url: '/processNode/processNode/export',
    method: 'post',
    data: query
  })
}
